
<% if session[:logged_in] == 1 %>
  <% @new_comment = Comment.new(:text => "", :recipe_id =>  comments[:id]) %>
  <%= render(:partial => "comments/new_comment", :object => @new_comment) %>
<%  end %>

<p><h2>Comments:</h2></p>

<% @comments = Comment.find_all_by_recipe_id(comments[:id]) %>
<% if @comments.empty? %>
<b>No Comments</b>
<% else %>
    <%= render(:partial => "comments/show_comment", :collection => @comments) %>
<% end %>
